package kr.hkit.powerjava.chapter12.poli;

import kr.hkit.powerjava.chapter12.RemoteControl;

public class AnnoymousTest {

	public static void main(String[] args) {
		long a  = System.currentTimeMillis();
		RemoteControl rc = new RemoteControl() {
			
			@Override
			public void turnOn() {
				System.out.println("켜짐");
				
			}
			
			@Override
			public void turnOff() {
				System.out.println("꺼짐");
			}
		};
		
		rc.turnOn();
		rc.turnOff();
		
		long b = System.currentTimeMillis();
		System.out.println(b-a
				);
	}
}
